home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / admin / linuxcon.000 / linuxcon / linuxconf-1.6 / dialog / msgbox.c < prev    next >
C/C++ Source or Header  |  1996-06-02  |  319b  |  18 lines

  1. #include "dialog.h"
  2.  
  3.  
  4. /*
  5.     Display a message box. Program will pause and display an "OK" button
  6.     if the parameter 'pause' is non-zero.
  7. */
  8. int dialog_msgbox(
  9.     const char *title,
  10.     const char *prompt,
  11.     const char *icon)
  12. {
  13.     DIALOG dia;
  14.     int nof=0;
  15.     dia.seticon (icon);
  16.     return dia.edit (title,prompt,NULL,nof,MENUBUT_OK);
  17. }
  18.